package stringProcessing;

import java.util.StringTokenizer;


public class StringTest {
	public static void main(String[] args) {
		String str = "54nn";
		doSth(str, null);
		
		String loginToken="[wdsd34svdf]";
		int start=loginToken.indexOf("[");
		int end=loginToken.indexOf("]");
		System.out.println(loginToken.substring(1, loginToken.length()-1));
		StringTokenizer st = new StringTokenizer(loginToken,"[]");
		while (st.hasMoreElements()) {
		            System.out.println(st.nextElement().toString());

		        }
	}

	private static void doSth(String firstName, String lastName) {

		int a = 5;
		System.out.println(firstName.substring(1, 4) + a);
	}
}
